package com.xiong.word.model;

import org.apache.poi.xwpf.usermodel.XWPFTable;
import org.apache.poi.xwpf.usermodel.XWPFTableCell;
import org.apache.poi.xwpf.usermodel.XWPFTableRow;

import java.util.List;

public class XWPFTableRowModel {

    private XWPFTable table;

    private XWPFTableRow row;

    public XWPFTableRowModel(XWPFTable table, XWPFTableRow row) {
        this.table = table;
        this.row = row;
    }

    public XWPFTable getTable() {
        return table;
    }

    public XWPFTableRow getRow() {
        return row;
    }

    public List<XWPFTableCell> getCells(){
       return row.getTableCells();
    }
}
